<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户中心</title>
	<link rel="stylesheet" type="text/css" href="/static/index/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/jquery.pagination.css">
    <link rel="stylesheet" type="text/css" href="/static/index/css/main.css">
    <script type="text/javascript" src="/static/index/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" src="/static/index/js/jquery.pagination.min.js"></script>
    <script type="text/javascript" src="/static/index/js/user_follow.js"></script>
</head>
<body class="inframe_body">
        <h3 class="common_title">我的关注</h3>
        <ul class="card_list_con">
            {% for user_info in paginate.items %}
            <li class="author_card card_list">
{#                 {% if  user.avatar_url %}#}
{#                   <a href="#" target="_blank" class="author_pic"><img src="{{ user.avatar_url }}" alt="author_pic"></a>#}
{#                 {% endif %}#}
                <a href="#" target="_blank" class="author_pic"><img src="/static/index/images/cat.jpg" alt="author_pic"></a>
                <a href="#" target="_blank" class="author_name">{{ user_info.nick_name }}</a>
                <div class="author_resume">{{ user_info.signature }}</div>
                <div class="writings"><span>总篇数</span><b>{{ user_info.news.count() }}</b></div>
                <div class="follows"><span>粉丝</span><b>{{ user_info.followers.count() }}</b></div>

{#                {% if news_author.can_follow %}#}
                 <a href="javascript:;" class="focus fr" data-user-id="{{ user_info.id}}">关注</a>
{#                {% else %}#}
                <a href="javascript:;" class="focused fr" data-user-id="{{ user_info.id }}"><span class="out">已关注</span><span class="over">取消关注</span></a>
{#                {% endif %}#}
            </li>
            {% endfor %}
        </ul>


        <div id="pagination" class="page"></div>
        <script>
            $(function() {
                $("#pagination").pagination({
                    currentPage: {{ paginate.page }},
                    totalPage: {{ paginate.pages }},
                    callback: function(current) {
                        window.location.href = "/user/user_follow.html?page="+current;
                    }
                });
            });
        </script>
</body>
</html>